home *** CD-ROM | disk | FTP | other *** search
- # DESCRIPTION:
- # --------------------------------------------------------------
- #
- # Tests device contention from multiple threads
- #
- # --------------------------------------------------------------
- ;
- @EVENTS={BREAKPOINT=0}
- @THREADS=5
- ;
- defaultconnection cdxa make type xa stream to ampmix totype amp stream wait
- ;
- @THREAD 1
- @BREAK A CDXA WILL NEED TO BE IN THE DEFAULT CD-ROM DRIVE
- @SET_EVENT BREAKPOINT 1
- open cdxa shareable alias cdxa_11 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #1
- @WAIT_NOTIFY 1 60000
- acquire cdxa_11
- @WAIT_PASSDEVICE cdxa_11 60000
- close cdxa_11 wait
- ;
- @REM Test 2: Doesn't need to be active to close it.
- open cdxa shareable alias cdxa_12 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #11
- @WAIT_NOTIFY 11 60000
- close cdxa_12 wait
- ;
- @THREAD 2
- @WAIT_EVENT BREAKPOINT
- open cdxa shareable alias cdxa_21 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #2
- @WAIT_NOTIFY 2 60000
- acquire cdxa_21
- @WAIT_PASSDEVICE cdxa_21 60000
- close cdxa_21 wait
- ;
- @REM Test 2: Doesn't need to be active to close it.
- open cdxa shareable alias cdxa_22 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #12
- @WAIT_NOTIFY 12 60000
- close cdxa_22 wait
- ;
- @THREAD 3
- @WAIT_EVENT BREAKPOINT
- open cdxa shareable alias cdxa_31 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #3
- @WAIT_NOTIFY 3 60000
- acquire cdxa_31
- @WAIT_PASSDEVICE cdxa_31 60000
- close cdxa_31 wait
- ;
- @REM Test 2: Doesn't need to be active to close it.
- open cdxa shareable alias cdxa_32 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #13
- @WAIT_NOTIFY 13 60000
- close cdxa_32 wait
- ;
- @THREAD 4
- @WAIT_EVENT BREAKPOINT
- open cdxa shareable alias cdxa_41 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #4
- @WAIT_NOTIFY 4 60000
- acquire cdxa_41
- @WAIT_PASSDEVICE cdxa_41 60000
- close cdxa_41 wait
- ;
- @REM Test 2: Doesn't need to be active to close it.
- open cdxa shareable alias cdxa_42 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #14
- @WAIT_NOTIFY 14 60000
- close cdxa_42 wait
- ;
- @THREAD 5
- @WAIT_EVENT BREAKPOINT
- open cdxa shareable alias cdxa_51 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #5
- @WAIT_NOTIFY 5 60000
- acquire cdxa_51
- @WAIT_PASSDEVICE cdxa_51 60000
- close cdxa_51 wait
- ;
- @REM Test 2: Doesn't need to be active to close it.
- open cdxa shareable alias cdxa_52 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #15
- @WAIT_NOTIFY 15 60000
- close cdxa_52 wait
- ;
-